//
//  LTPlaceholderTextView.m
//  BaseProject
//
//  Created by 全速 on 2018/5/4.
//  Copyright © 2018年 lin-tong. All rights reserved.
//

#import "LTPlaceholderTextView.h"

@implementation LTPlaceholderTextView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self createView];
    }
    return self;
}

- (void)createView{
    _placeHolderLabel = [UILabel new];
    _placeHolderLabel.font = [UIFont systemFontOfSize:kNumFrom375(12)];
    [self addSubview:_placeHolderLabel];
    [self updateFrame];
}

- (void)updateFrame{
    [_placeHolderLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self).with.offset(kNumFrom375(10));
        make.right.equalTo(self.mas_right).with.offset(-kNumFrom375(10));
        make.bottom.equalTo(self).with.offset(kNumFrom375(10));
    }];
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
